Skip to content

fix(data-classes): use user_uid for the Uid in Transfer Family PosixProfile - #8524

Merged
leandrodamascena merged 2 commits into
aws-powertools:developfrom
LuisFigueroaG:fix/transfer-family-posix-uid
Oct 16, 2026
Merged

leandrodamascena merged 2 commits into
aws-powertools:developfrom
LuisFigueroaG:fix/transfer-family-posix-uid

Conversation

@LuisFigueroaG

Copy link
Copy Markdown
Contributor

Issue number: closes #8522

Summary

Changes

build_authentication_response_efs set the PosixProfile Uid to user_gid. It now uses user_uid. Added a test with different uid and gid values, which fails on develop.

User experience

Before: user_gid=1000, user_uid=1001 produced {"Gid": 1000, "Uid": 1000}.
After: it produces {"Gid": 1000, "Uid": 1001}, so EFS users get the configured POSIX user id.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@LuisFigueroaG
LuisFigueroaG requested a review from a team as a code owner October 6, 2026 02:29
@LuisFigueroaG
LuisFigueroaG requested a review from hjgraca October 6, 2026 02:29
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 6, 2026
@boring-cyborg

boring-cyborg Bot commented Oct 6, 2026

Copy link
Copy Markdown

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

@boring-cyborg boring-cyborg Bot added the tests label Oct 6, 2026

@leandrodamascena leandrodamascena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LuisFigueroaG, nice catch! I was able to reproduce the swapped Uid and confirm the fix across the EFS scenarios, including uid 0, logical home directories and responses with public keys and policy. Approving!

@sonarqubecloud

Copy link
Copy Markdown

@leandrodamascena
leandrodamascena merged commit 4624628 into aws-powertools:develop Oct 16, 2026
@boring-cyborg

boring-cyborg Bot commented Oct 16, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

@powertools-for-aws-oss-automation

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.92%. Comparing base (66d3e3b) to head (f1566d1).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8524   +/-   ##
========================================
  Coverage    96.92%   96.92%           
========================================
  Files          317      317           
  Lines        15976    15976           
  Branches      1413     1413           
========================================
  Hits         15484    15484           
  Misses         349      349           
  Partials       143      143           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LuisFigueroaG
LuisFigueroaG deleted the fix/transfer-family-posix-uid branch October 20, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: TransferFamilyAuthorizerResponse sets the PosixProfile Uid to the gid

2 participants